xc_cpuid_apply_policy() and HVM_PARAM_VIRIDIAN are defined on x86
only.
Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
XL_LOG_ERRNOVAL(ctx, XL_LOG_ERROR, ret, "hvm build set params failed");
return ERROR_FAIL;
}
+#if defined(__i386__) || defined(__x86_64__)
xc_cpuid_apply_policy(ctx->xch, domid);
+#endif
return 0;
}
xc_get_hvm_param(handle, domid, HVM_PARAM_STORE_PFN, store_mfn);
xc_set_hvm_param(handle, domid, HVM_PARAM_PAE_ENABLED, pae);
+#if defined(__i386__) || defined(__x86_64__)
xc_set_hvm_param(handle, domid, HVM_PARAM_VIRIDIAN, viridian);
+#endif
xc_set_hvm_param(handle, domid, HVM_PARAM_STORE_EVTCHN, store_evtchn);
return 0;
}